package demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class Test {

    @RequestMapping("test1")
    @ResponseBody
    @MyLog
    public String test1(){
        return "success";
    }

    @RequestMapping("test2")
    @ResponseBody
    @MyLog
    public String test2(){
        return "success";
    }

    @RequestMapping("test3")
    @ResponseBody
    @MyLog
    public String test3(){
        return "success";
    }

    @RequestMapping("test4")
    @ResponseBody
    @MyLog
    @ControllerWebLog(name="日志test")
    public String test4(){
        return "success";
    }
}
